package org.jeecg.modules.purchase.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.purchase.entity.PurchaseStockOutGoods;
import org.jeecg.modules.purchase.entity.PurchaseStockOut;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 出库记录
 * @Author: jeecg-boot
 * @Date:   2022-11-15
 * @Version: V1.0
 */
public interface IPurchaseStockOutService extends IService<PurchaseStockOut> {

	/**
	 * 添加一对多
	 *
	 * @param purchaseStockOut
	 * @param purchaseStockOutGoodsList
	 */
	public void saveMain(PurchaseStockOut purchaseStockOut,List<PurchaseStockOutGoods> purchaseStockOutGoodsList) ;

	/**
	 * 添加一对多
	 *
	 * @param purchaseStockOut
	 * @param purchaseStockOutGoodsList
	 */
	public void saveMainTemp(PurchaseStockOut purchaseStockOut,List<PurchaseStockOutGoods> purchaseStockOutGoodsList) ;

	/**
	 * 修改一对多
	 *
	 * @param purchaseStockOut
	 * @param purchaseStockOutGoodsList
	 */
	public void updateMain(PurchaseStockOut purchaseStockOut,List<PurchaseStockOutGoods> purchaseStockOutGoodsList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	IPage<PurchaseStockOut> pageList(Page<PurchaseStockOut> page, QueryWrapper<PurchaseStockOut> queryWrapper);
	
}
